<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>博客首页</title>
  <link href="./layui/css/layui.css" rel="stylesheet">
</head>
<body>
<ul class="layui-nav" lay-filter="">
  <li class="layui-nav-item"><a href="./index.html">首页</a></li>
  <li class="layui-nav-item layui-this"><a href="">页面1</a></li>
  <li class="layui-nav-item"><a href="./page2.html">页面2</a></li>
  <li class="layui-nav-item">
    <a href="javascript:;">页面3</a>
    <dl class="layui-nav-child"> <!-- 二级菜单 -->
      <dd><a href="./page3-1.html">页面3-1</a></dd>
      <dd><a href="">页面3-2</a></dd>
      <dd><a href="">页面3-3</a></dd>
    </dl>
  </li>
  <li class="layui-nav-item"><a href="">页面4</a></li>
</ul>

<script src="./layui/layui.js"></script>

<script>
  layui.use('element', function(){
    var element = layui.element;

    //…
  });

</script>

</body>


</html>
